<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort() + path + "/";
	String id=request.getParameter("id");
	if (null == id || "".equals(id)	|| "null".equals(id)) {
		id = "";
	}
	String username=request.getParameter("username");
	if (null == username || "".equals(username)	|| "null".equals(username)) {
		username = "";
	}
	String name=request.getParameter("name");
	if (null == name || "".equals(name)	|| "null".equals(name)) {
		name = "";
	}
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<html>
<head>
<title>医学研究登记备案信息系统</title>
<base href="<%=basePath%>">
<meta http-equiv=X-UA-Compatible content=IE=EmulateIE7 />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="/js/common.js"></script>
<%@ include file="/commons/meta.jsp"%>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<script type="text/javascript" src="/scripts/jquery.md5.js"></script>
<link href="/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/scripts/Validform_v5.3.2_min.js"></script>
<script>
function submitForm() {
	var kedaoForm = $(".kedaoForm").Validform({
		tiptype: 3,
		beforeSubmit:function(curform){
			//在验证成功后，表单提交前执行的函数，curform参数是当前表单对象。
			//这里明确return false的话表单将不会提交;
			$("#password").val($.md5($("#password").val()));	
			$("#confirmpwd").val($.md5($("#confirmpwd").val()));	
		}
	});
	kedaoForm.check();
	kedaoForm.submitForm(false);
}
</script>
</head>
<body>
	<div id="MainContainer">
	
		<jsp:include page="/index/project_top.jsp" />		
		<div id="wrap">	
		<div style="margin-top: 10px; margin-left: 20px; color: #666; font-size: 12px;">当前位置：医学研究项目备案&gt;&gt; 修改密码</div>
		    <form name="kedaoForm" id="kedaoForm" class="kedaoForm" action="/admin/user!updataUser.action" method="post">
			<!-- 添加或更新用户  -->
			<div id="reg1" class="reg_form">	
				<input type="hidden" id="id" name="id" value="<%=id%>">
				<ul>
					<li class="name">用户名称：</li>
					<li class="inpu">
					<%=username%>
					</li>
					<li></li>
				</ul>
				<ul>
					<li class="name">用户姓名：
					</li>
					<li class="inpu">
					<%=name%>
					</li>
					<li></li>
				</ul>
				<ul>
					<li class="name">输入新密码：</li>
					<li class="inpu">
					<input type="password" id="password" name="password" class="texboxReg" datatype="*"/>
					</li>
					<li><span class="Validform_checktip spanTip note">（必填 ）</span></li>
				</ul>
				<ul>
				   <li class="name">确认新密码：</li>
					<li class="inpu">
						<input type="password" id="confirmpwd" name="confirmpwd" class="texboxReg" datatype="*" recheck="password"/>
					</li>
					<li><span class="Validform_checktip spanTip note">（必填 ）</span></li>
				 </ul>
			</div>
			
			<div class="reg_form">
				<ul>
					<li class="name">&nbsp;</li>
					<li class="inpu">
					<button onclick="submitForm();" class="btn" style="width: 150px;">保 存 Save</button>
					&nbsp;&nbsp;&nbsp;   
  	  				<button onclick="history.go(-1);" class="btn" style="width: 150px;">返回 Back</button>
					</li>
				</ul>
			</div>
			</form>
		</div>
		
		<jsp:include page="/index/footer.jsp"></jsp:include>		
	</div>
</body>
</html>